package com.oocl.Util;

public class CmdParser {
	/**
	 * To parse the operation when user input
	 * @param str
	 * @return
	 */
	public static String parseOperate(String str){
		String operate = str.substring(0,1);
		return operate;
	}
	
	/**
	 * To parse the parameter that user input
	 * @param str
	 * @return
	 */
	public static String parseParam (String str) {
		String param = null;
		if(str.length()>1){
			param = str.substring(2, str.length());
		}
		return param;
	}
}
